<template>
  <div class="not-found">
    <img src="../assets/images/404/404.jpg" alt="" srcset="">
    <div class="not-found-content">
      <div class="title">404</div>
      <div class="content"><p>您要访问的页面没有找到</p></div>
      <div>
        <el-button type="primary" size="medium" @click="backHome">返回首页</el-button>
        <el-button size="medium" @click="backLogin">返回登录页</el-button>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Error',
  methods: {
    // 返回首页
    backHome() {
      this.$router.push('/admin/home')
    },
    // 返回登录页
    backLogin() {
      this.$router.push('/login')
    }
  }
}
</script>

<style lang="scss" scoped>
.not-found {
  display: flex;
  width: 100;
  height: 100%;
  align-items: center;
  justify-content: center;
  .not-found-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    .title {
      font-size: 32px;
    }
    .content {
      p {
        color: #76838f;
      }
    }
  }
}
</style>
